<foreach name="data" key="key" item="value">
	<div class="the-box no-border store-list">							
		<div class="media">			                            
			<div class="clearfix visible-xs"></div>			                            
			<div class="media-body">		                              
			<h4 class="media-heading">
				<a href="#fakelink"><strong>{$room[$value['room_id']]['room_name']}</strong> 
					<span class="label label-info pull-right">会议室座位数：{$room[$value['room_id']]['room_allSeats']}个座位</span>
				</a>
			</h4>
			<ul class="list-inline">
				<li><a href="#fakelink">会议室地址</a></li>
				<li style="list-style: none">|</li>
				<li>【{$room[$value['room_id']]['local_name']}】{$room[$value['room_id']]['building_name']}{$room[$value['room_id']]['floor_name']}</li>
			</ul>
			<ul class="list-inline">
				<li><a href="#fakelink">会议室配置</a></li>
				<li style="list-style: none">|</li>
				<li><span class="label label-danger">投影设备／{$room[$value['room_id']]['room_haveProjector']==0?"无":"有"}</span>
				<span class="label label-success">wifi设备／{$room[$value['room_id']]['room_haveWifi']==0?"无":"有"}</span></li>
			</ul>
			<ul class="list-inline hidden-xs">
				<li><a href="#fakelink">会议室描述：</a></li>
			</ul>
			<p class="hidden-xs" style="text-indent:2em">			                                
				{$room[$value['room_id']]['room_description']==""?"暂无":$room[$value['room_id']]['room_description']}
			</p> 

			<span style="background:#8CC152" name="{$value.department_id}" class="save use label label-danger">修改</span>
			<span id="{$value.department_id}" class="delete use label label-danger">删除</span>
		</div><!-- /.media-body -->							

	</div><!-- /.media -->
			                        	
	</div><!-- /.the-box no-border -->					
</foreach>
<ul class="pagination success">{$show}</ul>
<script type="text/javascript">
	$(".current").css({background:"#8CC152",color:"white"});
	$(".prev").click(function(){
		var local_id =$(".city_check").attr("name");		
		var room_allSeats = $(".seats_check").attr("name");
		var name = $(".installation_check").attr("name");
		var current = $(".current").attr("title");
		current -=1;
		$.ajax({
			url:"__URL__/search",
			data:{"page":current,"local_id":local_id,"room_allSeats":room_allSeats,"name":name},
			type:"post",
			success:function(data){
				$("#box_ajax").html(data);
			}
		});
	});
	$(".next").click(function(){
		var local_id =$(".city_check").attr("name");		
		var room_allSeats = $(".seats_check").attr("name");
		var name = $(".installation_check").attr("name");
		var current = $(".current").attr("title");
		current +=1;									
		$.ajax({
			url:"__URL__/search",
			data:{"page":current,"local_id":local_id,"room_allSeats":room_allSeats,"name":name},
			type:"post",
			success:function(data){											
				$("#box_ajax").html(data);
			}
		});
	});
	$(".last").click(function(){
		var local_id =$(".city_check").attr("name");		
		var room_allSeats = $(".seats_check").attr("name");
		var name = $(".installation_check").attr("name");
		var current = $(this).attr("name");										
		$.ajax({
			url:"__URL__/search",
			data:{"page":current,"local_id":local_id,"room_allSeats":room_allSeats,"name":name},
			type:"post",
			success:function(data){											
				$("#box_ajax").html(data);
			}
		});
	});

	$(".first").click(function(){
		var local_id =$(".city_check").attr("name");		
		var room_allSeats = $(".seats_check").attr("name");
		var name = $(".installation_check").attr("name");
		$.ajax({
			url:"__URL__/search",
			data:{"page":1,"local_id":local_id,"room_allSeats":room_allSeats,"name":name},
			type:"post",
			success:function(data){													
				$("#box_ajax").html(data);
			}
		});
	});

	$(".number").click(function(){
		var local_id =$(".city_check").attr("name");		
		var room_allSeats = $(".seats_check").attr("name");
		var name = $(".installation_check").attr("name");
		
		var num = $(this).attr("title");
		$.ajax({
			url:"__URL__/search",
			data:{"page":num,"local_id":local_id,"room_allSeats":room_allSeats,"name":name},
			type:"post",
			success:function(data){
				$("#box_ajax").html(data);
			}
		});
	});
</script>
